import request from '@/utils/request'

// 查看权限详情
export const userAssignmentView = (data?: any) =>
  request({
    url: '/assignment/view',
    method: 'post',
    data
  })

// 分配子节点
export const userAssign = (data?: any) =>
  request({
    url: '/assignment/assign',
    method: 'post',
    data
  })
// 回收子节点
export const userRevoke = (data?: any) =>
  request({
    url: '/assignment/revoke',
    method: 'post',
    data
  })
